Skip to content

@W-20590941 Updates for local dev process#18

Merged
yhsieh1 merged 5 commits intomainfrom
t/commerce/W-20590941/updates
Dec 29, 2025
Merged

@W-20590941 Updates for local dev process#18
yhsieh1 merged 5 commits intomainfrom
t/commerce/W-20590941/updates

Conversation

@yhsieh1
Copy link
Copy Markdown
Contributor

@yhsieh1 yhsieh1 commented Dec 29, 2025

Summary

Added dev:watch script to simply local development process.
Updated README.md to clarify the dev process.

Benefits of this approach:

  • ✅ No global dependencies required
  • ✅ Fast rebuilds on file changes
  • ✅ Works reliably with external tools like Cursor
  • ✅ Same code path as production

Testing

How was this tested?


  • Tests pass (pnpm test)
  • Code is formatted (pnpm run format)

clavery
clavery previously approved these changes Dec 29, 2025
@clavery clavery dismissed their stale review December 29, 2025 18:15

I'm confused why this is needed for local dev? What's not working about dev.js? For the CLI this works fine to develop without recompilation with tsc (and that includes the dependencies like the SDK). What is not working with the MCP?

@clavery
Copy link
Copy Markdown
Collaborator

clavery commented Dec 29, 2025

I'm confused why this is needed for local dev? What's not working about dev.js? For the CLI this works fine to develop without recompilation with tsc (and that includes the dependencies like the SDK). What is not working with the MCP?

Comment thread packages/b2c-dx-mcp/README.md Outdated
Comment thread packages/b2c-dx-mcp/package.json Outdated
"format:check": "prettier --check src",
"preinspect": "pnpm run build",
"inspect": "mcp-inspector node bin/run.js --toolsets all --allow-non-ga-tools",
"inspect": "mcp-inspector node bin/dev.js --toolsets all --allow-non-ga-tools",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's what I was going to add in my PR. Giving us the option to run the inspector on the built project AND the dev project:

Suggested change
"inspect": "mcp-inspector node bin/dev.js --toolsets all --allow-non-ga-tools",
"preinspect": "pnpm run build",
"inspect": "mcp-inspector node bin/run.js --toolsets all --allow-non-ga-tools",
"inspect:dev": "mcp-inspector node --conditions development bin/dev.js --toolsets all --allow-non-ga-tools",

@yhsieh1 yhsieh1 merged commit aec6bc3 into main Dec 29, 2025
2 checks passed
@yhsieh1 yhsieh1 deleted the t/commerce/W-20590941/updates branch December 29, 2025 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants